package com.yymmarket.util.thread;

public class ThreadManager {

	TenSecondThread tenSecondThread;
	OneSecondThread oneSecondThread;
	EverydayThread everydayThread;
	
	public ThreadManager(){
		init();
	}
	
	private void init(){
		tenSecondThread = new TenSecondThread();
		oneSecondThread = new OneSecondThread();
		everydayThread = new EverydayThread();
	}
	
	public void startThread(){
		tenSecondThread.start();
		oneSecondThread.start();
		everydayThread.start();
		
	}
	
	public void endThread(){
		tenSecondThread.setStarted(false);
		oneSecondThread.setStarted(false);
		everydayThread.setStarted(false);
	}
}
